package com.ler.yrmall.product.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.ler.yrmall.basic.BaseVO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * spu
 * @author leron
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SpuDTO extends BaseVO {

    private String name;

    private String spuDescription;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<String> categoryPath;

    /**
     * 分类路径 A/B/C
     */
    private String categoryPathName;

    /**
     * 分类路径 id1,id2,id3
     */
    private String categoryPathIdStr;

    /**
     * 所属品牌
     */
    private Long brandId;

    /**
     * 品牌名称
     */
    private String brandName;

    /**
     * 重量
     */
    private BigDecimal weight;

    /**
     * todo 枚举抽取
     * 状态 0 上架 1 下架
     */
    private Integer status;

    /**
     * 主图片
     */
    private String mainImg;

    /**
     * 支持快速展示的基础属性
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<String> quickShowAttr;

}
